COM AT+IPR Fixed DTE rate
COM Version 1.0		12.01.05	T. Kleinmann
COM ToDo (S3): Implement automatic testing.

from attglobals import *

AT+IPR=?
strResp=WAITFOR (1,'OK')

iDTErates=[1200,2400,4800,9600,19200,38400,57600,115200,200000,230400,400000,460800]

for i in iDTErates:
	AT+IPR=i
	WAIT FOR OK
	MESSAGE('Please switch data rate in ATT to ',i,'bps!. Therefore',chr(26),chr(10),' you have to choose DEVICE SETUP->CLEAR MAPPING-><COMX>',chr(26),chr(10),'SETUP DEVICE->',i,' bps->OK')
	MESSAGE('Well, sorry...Need to implement a non-modal dialogue for ATT...Takes some time... Until then, please use ATTs command line for testing!')
	#AT+IPR?
	#WAITFOR (1,i)
	#WAIT 2000

MESSAGE('RATES:',iDTErates)


AT
WAIT FOR OK